﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace wUniAppPCL.MVVM
{
// nenasiel som Observable collection pre PCL v tejto konfiguracii tak beriem si na pomoc a trocha poupravim 
  // idem iba cez klasicky LIST<T>
  //http://msdn.microsoft.com/en-us/library/hh563947(v=vs.110).aspx

  public static class ObservableCollectionExtension
  {
    public static void AddRange<T>(this ObservableCollection<T> self, IEnumerable<T> collection)
    {
      foreach (var item in collection)
      {
        self.Add(item);
      }
    }
  }
}
